package Frame.sayoptional;

import FCRendering.FCRMaster;
import VWorldGameStudio.FCRPlayerLink;
import Function.FCMutilPlayCache;

import static FCRendering.FCRMaster.fcv;
import static FCRendering.FCRMaster.player1;

public class RebornTypeOptional implements ISayoption{

    @Override
    public void clickWhichOption(SayTextAndOption op) {
        FCRMaster.fcv.setSayText(new String[]{op.optionTextRepoId});
        //将队伍列出
        fcv.getSayNpcSelectMenu().add(new SayTextAndOption("player", "",
                0, "","reborn").resetOptionTextId(player1.getName()+","+player1.getAliasUID()));
        for(int i =0; i < FCMutilPlayCache.getTeamMembers().size(); i++) {
            FCRPlayerLink link = FCMutilPlayCache.getTeamMembers().get(i);
            fcv.getSayNpcSelectMenu().add(new SayTextAndOption("player", "",
                    i+1, "","reborn").resetOptionTextId(link.curPlayerName+","+link.curPlayerHostUID));
        }
    }
}
